package com.yzsj.socket.business.service.impl;

import com.yzsj.socket.business.dao.CategoryDao;
import com.yzsj.socket.business.domain.vo.CategoryVO;
import com.yzsj.socket.business.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryDao categoryDao;

    @Override
    public CategoryVO get(Integer id) {
        return categoryDao.get(id);
    }

    @Override
    public List<CategoryVO> list(Map<String, Object> map) {
        return categoryDao.list(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return categoryDao.count(map);
    }

    @Override
    public int save(CategoryVO category) {
        return categoryDao.save(category);
    }

    @Override
    public int update(CategoryVO category) {
        return categoryDao.update(category);
    }

    @Override
    public int remove(Integer id) {
        return categoryDao.remove(id);
    }

    @Override
    public int batchRemove(Integer[] ids) {
        return categoryDao.batchRemove(ids);
    }

    @Override
    public List<CategoryVO> getNotAlarmCount() {
        return categoryDao.getNotAlarmCount();
    }

    @Override
    public List<CategoryVO> getAlarmCount() {
        return categoryDao.getAlarmCount();
    }

}
